package com.cy.detectsys.config;

import lombok.Data;

@Data
public class SmallException extends Throwable{
    private String msg;
    private int code = 500;

    public SmallException(String msg) {

        this.msg = msg;
    }

    public SmallException(String msg, Throwable e) {

        this.msg = msg;
    }

    public SmallException(String msg, int code) {

        this.msg = msg;
        this.code = code;
    }

    public SmallException(String msg, int code, Throwable e) {

        this.msg = msg;
        this.code = code;
    }
}
